import java.util.*;
/**
 * Program: Receptionist
 * 
 * @author Amrita Mukherjee
 * @version 15/10/2012
 */
public class receptionist
{
   public static void main(String[] args) throws InterruptedException
    {
        Scanner kb = new Scanner(System.in);
        System.out.print("Hellp. who would you like to speak to? ");
        String name = kb.nextLine();
        for(int i=1; i<=2; i++)
        {
            System.out.println("Please hold...");
            Thread.sleep(2000);
            System.out.print("Thanks for holding, uh, who would you like to speak to?");
            name = kb.nextLine();
        }
    Thread.sleep(4000);
    System.out.println("Sorry, "+ name + " just left for the day.");
    }
}
/*
 * my test session
 * Hellp. who would you like to speak to? Amrita
Please hold...
Thanks for holding, uh, who would you like to speak to?Amrita
Please hold...
Thanks for holding, uh, who would you like to speak to?Amrita
Sorry, Amritajust left for the day.

 */